<?php
class TaxPdf extends TCPDF
    {

        public $startDate;
        public $endDate;

        public function Header()
        {
            $this->y = $this->header_margin;
            $this->x = $this->original_lMargin;

            $pagetext = $this->getAliasNumPage() . ' of ' . $this->getAliasNbPages();

            $this->writeHTMLCell(87.8, 20, 106.1, 16, $html = '<h1 style="text-align: center">Sales Tax Report</h1>');
            $this->writeHTMLCell(87.8, 20, 106.1, 10, $html = '<h3 style="text-align: center">' . $this->startDate . ' - ' . $this->endDate . '</h3>');
            $this->writeHTMLCell(87.8, 20, 106.1, 5, $html = '<h3 style="text-align: center">QSI, INC</h3>');
            $this->SetFontSize(8);
            $this->writeHTMLCell(87.8, 8, 260, 8, $html = $pagetext);

            $this->writeHTMLCell(87.8, 4, 260, 12, $html = date('m-d-Y'));
            $this->writeHTMLCell(87.8, 4, 20, 8, $html = date('m-d-Y'));
            $this->writeHTMLCell(87.8, 4, 20, 12, $html = date('h:i A'));
        }

    }